package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 触发器列表对象 triger_list
 * 
 * @author zbm
 * @date 2023-06-28
 */
@ApiModel("触发器列表")
public class TrigerList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("id")
    private Long id;

    /** $column.columnComment */
    @ApiModelProperty("触发器名称")
    @Excel(name = "触发器名称", readConverterExp = "$column.readConverterExp()")
    private String name;

    /** $column.columnComment */
    @ApiModelProperty("触发器类型")
    @Excel(name = "触发器类型", readConverterExp = "$column.readConverterExp()")
    private String equipmentType;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long regionId;

    /** $column.columnComment */
    @ApiModelProperty("所属区域")
    @Excel(name = "所属区域")
    private String region;

    /** $column.columnComment */
    @ApiModelProperty("数据类型")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String dataType;

    /** $column.columnComment */
    @ApiModelProperty("触发条件")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String condition;

    /** $column.columnComment */
    @ApiModelProperty("参数")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long parameter;

    /** $column.columnComment */
    @ApiModelProperty("状态")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long status;

    /** $column.columnComment */
    @ApiModelProperty("是否可用")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long enable;

    /** $column.columnComment */
    @ApiModelProperty("触发恢复")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long recoveryTrigger;
    private Integer devTypeId;
    private String dname;
    private String deviceName;

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Integer getDevTypeId() {
        return devTypeId;
    }

    public void setDevTypeId(Integer devTypeId) {
        this.devTypeId = devTypeId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEquipmentType(String equipmentType) 
    {
        this.equipmentType = equipmentType;
    }

    public String getEquipmentType() 
    {
        return equipmentType;
    }
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setRegion(String region) 
    {
        this.region = region;
    }

    public String getRegion() 
    {
        return region;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setCondition(String condition) 
    {
        this.condition = condition;
    }

    public String getCondition() 
    {
        return condition;
    }
    public void setParameter(Long parameter) 
    {
        this.parameter = parameter;
    }

    public Long getParameter() 
    {
        return parameter;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setEnable(Long enable) 
    {
        this.enable = enable;
    }

    public Long getEnable() 
    {
        return enable;
    }
    public void setRecoveryTrigger(Long recoveryTrigger) 
    {
        this.recoveryTrigger = recoveryTrigger;
    }

    public Long getRecoveryTrigger() 
    {
        return recoveryTrigger;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("equipmentType", getEquipmentType())
            .append("regionId", getRegionId())
            .append("region", getRegion())
            .append("dataType", getDataType())
            .append("condition", getCondition())
            .append("parameter", getParameter())
            .append("status", getStatus())
            .append("enable", getEnable())
            .append("recoveryTrigger", getRecoveryTrigger())
            .toString();
    }
}
